namespace JGSY.CMS.LowCode.Platform.Application.DTOs.Monitoring;

/// <summary>
/// 用户交互数据传输对象
/// </summary>
public class UserInteractionDto
{
    /// <summary>
    /// 会话ID
    /// </summary>
    public string SessionId { get; set; } = string.Empty;

    /// <summary>
    /// 交互类型
    /// </summary>
    public string InteractionType { get; set; } = string.Empty;

    /// <summary>
    /// 页面URL
    /// </summary>
    public string PageUrl { get; set; } = string.Empty;

    /// <summary>
    /// 目标元素
    /// </summary>
    public string? TargetElement { get; set; }

    /// <summary>
    /// 元素文本
    /// </summary>
    public string? ElementText { get; set; }

    /// <summary>
    /// 路由来源
    /// </summary>
    public string? RouteFrom { get; set; }

    /// <summary>
    /// 路由目标
    /// </summary>
    public string? RouteTo { get; set; }

    /// <summary>
    /// 滚动深度
    /// </summary>
    public int? ScrollDepth { get; set; }

    /// <summary>
    /// 表单数据
    /// </summary>
    public string? FormData { get; set; }

    /// <summary>
    /// 持续时间
    /// </summary>
    public int? Duration { get; set; }

    /// <summary>
    /// 时间戳
    /// </summary>
    public long Timestamp { get; set; }
}
